<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    let obj = {
            name: "张三",
            age: 18,
            gender: "男",
            skill: ["吃", "喝", "玩", "乐",
            hobbies="男"]
        }
    let arr={name:a,age:b,gender:c,skill:d}=obj;
    let arr1={name,age,gender,skill}=obj;
    console.log(a,b,c,d);
    console.log(name,age,gender,skill);
    let arr2={name,age,gender,skill,hobbies="女"}=obj;
    console.log(name,age,gender,skill,hobbies);
    </script>
</body>
</html>